<div class="modal-header">
  <div class="modal-title">{{record.id ? '编辑' : '新增'}}角色</div>
</div>
<form nz-form #f="ngForm" se-container="1">
  <se label="角色名称">
    <input type="text" nz-input [(ngModel)]="record.name" name="name" required maxlength="255">
  </se>
  <se label="角色编码">
    <input type="text" nz-input [(ngModel)]="record.roleCode" name="roleCode" required maxlength="255">
  </se>
  <se label="角色描述">
    <textarea rows="4" nz-input [(ngModel)]="record.description" name="description"></textarea>
  </se>
</form>
<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button [disabled]="!f.form.valid || !f.form.dirty" [nzLoading]="http.loading" [nzType]="'primary'" nzGhost="true"(click)="save()">保存</button>
</div>
